package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.ContractSubmitDO;
import com.mhc.suzuki.dal.query.ContractSubmitQuery;

import java.util.List;


/**
 * Manager for ContractSubmit.
 */
public interface ContractSubmitManager {
    /**
     * query count by query condition.
     */
    int countByQuery(ContractSubmitQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ContractSubmitQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(ContractSubmitDO record);

    /**
     * insert selective.
     */
    long insertSelective(ContractSubmitDO record);

    /**
     * select by query condition.
     */
    List<ContractSubmitDO> selectByQuery(ContractSubmitQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<ContractSubmitDO> selectByQueryWithPage(ContractSubmitQuery query);

    /**
     * select by primary key.
     */
    ContractSubmitDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( ContractSubmitDO record,  ContractSubmitQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(ContractSubmitDO record, ContractSubmitQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ContractSubmitDO record);
}